package cn.initcap.designpattern.pattern.behavioral.observer.guavatest;

import com.google.common.eventbus.EventBus;

/**
 * guava的观察者模式测试
 *
 * @author initcap
 * @date Created in 2018/10/14 PM8:36.
 */
public class GuavaEventTest {

    public static void main(String[] args) {
        EventBus eventBus = new EventBus();
        GuavaEvent guavaEvent = new GuavaEvent();
        eventBus.register(guavaEvent);
        eventBus.post("post的内容");
    }
}
